package com.gopay.common.domain.cbrmb;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 
 * @ClassName: CbRmbAccountCapitalDtl
 * @Description: 跨境人民币账户资金来源主表
 * @author qld
 * @date 2016年7月6日 下午16:00:01
 */
@Entity
@Table(name = "CB_RMB_ACCOUNT_MAST")
public class CbRmbAccountMast extends BaseEntity {

    private static final long serialVersionUID = -8652092016017375009L;



    /**
     * 账户ID
     */
    private String acctId;

    /**
     * 境内资金余额
     */
    private BigDecimal jnBalAmt;

    /**
     * 境外资金余额
     */
    private BigDecimal jwBalAmt;

    /**
     * 网关资金余额
     */
    private BigDecimal wgBalAmt;



    /**
     * 更新时间
     */
    private Date lastUpdateTime;



    private int version;

    public CbRmbAccountMast() {
    }

	@Id
    @Column(name = "ACCT_ID", unique = true, nullable = false)
 
    public String getAcctId() {
        return this.acctId;
    }

    public void setAcctId(String acctId) {
        this.acctId = acctId;
    }

    @Column(name = "JN_BAL_AMT", precision = 25, scale = 4)
    public BigDecimal getJnBalAmt() {
		return jnBalAmt;
	}

	public void setJnBalAmt(BigDecimal jnBalAmt) {
		this.jnBalAmt = jnBalAmt;
	}

	@Column(name = "JW_BAL_AMT", precision = 25, scale = 4)
	public BigDecimal getJwBalAmt() {
		return jwBalAmt;
	}

	public void setJwBalAmt(BigDecimal jwBalAmt) {
		this.jwBalAmt = jwBalAmt;
	}

	@Column(name = "WG_BAL_AMT", precision = 25, scale = 4)
	public BigDecimal getWgBalAmt() {
		return wgBalAmt;
	}

	public void setWgBalAmt(BigDecimal wgBalAmt) {
		this.wgBalAmt = wgBalAmt;
	}

    @Column(name = "LAST_UPDATE_TIME")
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	@Column(name = "VERSION", precision = 22, scale = 0)
    public int getVersion() {
        return this.version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

}
